package com.ocom.payconfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.payconfig.EntityFoodstuffClass;
import com.ocom.common.request.payconfig.food.NewFoodClassRequest;
import com.ocom.common.request.payconfig.food.FoodClassIdRequest;

import java.util.List;

public interface FoodstuffClassService extends IService<EntityFoodstuffClass> {
    List<EntityFoodstuffClass> getList(Long companyId,Integer merchId);

    Integer getChild(Long companyId, FoodClassIdRequest request);

    Integer getParent(Long companyId,Integer merchId,Integer foodClassId);

    Integer getSameName(Long companyId,Integer merchId,String className,Boolean isUpdate,Integer foodClassId);

    Boolean removeByClassId(Long companyId, FoodClassIdRequest request);


    Boolean saveOne(Long companyId, NewFoodClassRequest request);


    Boolean updateOne(Long companyId, NewFoodClassRequest request);


    List<EntityFoodstuffClass> getAllChild(Long companyId, FoodClassIdRequest request);


}
